package com.lanjiyin.cloud.common.util;

import java.util.Map;

/**
 * 
 * @author tudaojun
 *
 */
public class TemplateUtil {

	public static String makeTemplate(Map<String,String> params,String content) {
		for(Map.Entry<String, String> entry : params.entrySet()){
            String mapKey = entry.getKey();
            String mapValue = entry.getValue();
            content = content.replace("${"+mapKey+"}", mapValue);
        }
		return content;
	}
}
